﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace WSIMServices.model
{
    [DataContract]
    public class Message {

        private long sender;

        [DataMember]
        public long Sender
        {
            get { return sender; }
            set { sender = value; }
        }
        private long receiver;
        [DataMember]
        public long Receiver
        {
            get { return receiver; }
            set { receiver = value; }
        }
        private bool isText;
        [DataMember]
        public bool IsText
        {
            get { return isText; }
            set { isText = value; }
        }
        private string text;
        [DataMember]
        public string Text
        {
            get { return text; }
            set { text = value; }
        }
        private DateTime msgDate;
        [DataMember]
        public DateTime MsgDate
        {
            get { return msgDate; }
            set { msgDate = value; }
        }
        private Attachment attachment;
        [DataMember]
        public Attachment Attachment
        {
            get { return attachment; }
            set { attachment = value; }
        }
    }
}
